<template>
<div>
  <j-select-biz-component :width="1000" v-bind="configs" v-on="$listeners" />
</div>
</template>

<script>
import JSelectBizComponent from "./JSelectBizComponent";

export default {
  name: "JSelectPosition",
  components: { JSelectBizComponent },
  props: ["value",'title'],
  data() {
    return {
      settings: {
        name: this.title,
        displayKey: "realname",
        returnKeys: ["id",'id'],
        listUrl: "/sys/user/list",
        queryParamCode: "realname",
        queryParamText: this.title,
        columns: [
          {
            title: "姓名",
            dataIndex: "realname",
            align: "center",
            width: "30%",
            widthRight: "70%",
          },
          {
            title: "部门",
            dataIndex: "orgCode",
            align: "center",
            width: "35%",
          },
          { title: "电话", dataIndex: "phone", align: "center", width: "25%" },
          {
            title: "出生日期",
            dataIndex: "birthday",
            align: "center",
            width: "25%",
          },
        ],
      },
    };
  },
  computed: {
    configs() {
      return Object.assign({ value: this.value }, this.settings, this.$attrs);
    },
  },
};
</script>

<style lang="less" scoped></style>